﻿@model DataEntity.OffGoods
@using IntelligentQuery.Model;
@using IntelligentQuery.Extensions;
<script src="~/Scripts/View/GoodsManage.js" type="text/javascript"></script>

<div class="easyui-layout" data-options="fit:true">
    <div data-options="region:'north',border:false" title="查询" style="height: 65px;">
        <div style="padding: 4px;">
            <form id="queryFm" name="queryFm" method="post">
                物品名称：@Html.TextBoxFor(m => m.Name).ForQuery(QueryMethod.Like)&nbsp;&nbsp;
                 
                <a id="aquery" href="javascript:void(0);" class="easyui-linkbutton" data-options="iconCls:'icon-search'">
                    查询</a>
            </form>
        </div>
  
    </div>
    <div data-options="region:'center',border:false">
        <table id="dg">
        </table>
   
    </div>

    <div id="toolbar" style="padding: 5px; height: auto; border-top-width: 1px;">
        <div>
            
                <a id="acreate" href="javascript:void(0);" class="easyui-linkbutton" data-options="iconCls:'icon-add',plain:true">
                    新建</a> 
               
                <a id="aedit" href="javascript:void(0);" class="easyui-linkbutton" data-options="iconCls:'icon-edit',plain:true">
                    编辑</a> 
               
                <a id="aremove" href="javascript:void(0);" class="easyui-linkbutton" data-options="iconCls:'icon-remove',plain:true">
                    删除</a>
                
            
            <a id="areload" href="javascript:void(0);" class="easyui-linkbutton" data-options="iconCls:'icon-reload',plain:true">
                刷新</a>
        </div>
    </div>
               <div id="dd"></div>
    <div id="tb">
<a id="asave" href="javascript:void(0);" class="easyui-linkbutton" data-options="iconCls:'icon-save',plain:false">保存</a>
<a id="aclose" href="javascript:void(0);" class="easyui-linkbutton" data-options="iconCls:'icon-close',plain:false">关闭</a>
</div>
</div>

<script type="text/javascript">

    $(function () {

        //给查询表单的text input控件添加回车查询事件
        window.platform.bindKeyDownToQueryFormInput();

        window.platform.GoodsManage.initPage("@ViewBag.ClassID",true, true, true);
    });

</script>




